package persistence;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the Accounts database table.
 * 
 */
@Entity
@Table(name="Accounts")
public class Account implements Serializable {
	private static final long serialVersionUID = 1L;
	private int idAccounts;
	private String type;
	private Set<Firm_has_Account> firmHasAccounts;

    public Account() {
    }


	@Id
	public int getIdAccounts() {
		return this.idAccounts;
	}

	public void setIdAccounts(int idAccounts) {
		this.idAccounts = idAccounts;
	}


	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}


	//bi-directional many-to-one association to Firm_has_Account
	@OneToMany(mappedBy="account")
	public Set<Firm_has_Account> getFirmHasAccounts() {
		return this.firmHasAccounts;
	}

	public void setFirmHasAccounts(Set<Firm_has_Account> firmHasAccounts) {
		this.firmHasAccounts = firmHasAccounts;
	}
	
}